<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->
<script language="javascript">
function CheckForm()
{
if(!checkLength("TrainBeginDate" , "开始时间" , 1 , 20))
return false;
if(!checkLength("TrainEndDate" , "结束时间" , 0 , 20))
return false;
if(!checkLength("TrainAgencies" , "培训机构" , 1 , 100))
return false;
if(!checkLength("TrainAddr" , "培训地点" , 0 , 100))
return false;
if(!checkLength("TrainCourses" , "培训课程" , 1 , 100))
return false;
if(!checkLength("TrainCertificates" , "获得证书" , 0 , 100))
return false;
if(!checkLength("TrainNote" , "详细描述" , 0 , 500))
return false;
return true;
}
</script>
<%

If Request.Form <> "" Then
TrainBeginDate =Trim(Request.Form("TrainBeginDate"))
TrainEndDate =Trim(Request.Form("TrainEndDate"))
TrainAgencies =Trim(Request.Form("TrainAgencies"))
TrainAddr =Trim(Request.Form("TrainAddr"))
TrainCourses =Trim(Request.Form("TrainCourses"))
TrainCertificates =Trim(Request.Form("TrainCertificates"))
TrainNote =Trim(Request.Form("TrainNote"))

Conn.Execute("insert into TrainTbl (TrainBeginDate , TrainEndDate , TrainAgencies , TrainAddr , TrainCourses , TrainCertificates , TrainNote , PerId) values ('"& TrainBeginDate &"' , '"& TrainEndDate &"' , '"& TrainAgencies &"' , '"& TrainAddr &"' , '"& TrainCourses &"' , '"& TrainCertificates &"' , '"& TrainNote &"' , "& session("AnyPIM_userID") &")")

'Conn.Execute("update Users set pxFlag = '1' where PerId = "& session("AnyPIM_userID"))

'response.redirect "ChgPerInfo_5.asp"
End If

%>

<TABLE class="table table-condensed">
<form id="PerForm" name="PerForm" method="post" action="Train_Add.asp" onsubmit="return CheckForm();">
<tr bgcolor='#f6f6f6'>
<td width="13%" bgcolor='#ddeeff'><font color="#FF0000">*</font>时间：</td>
<td width="87%" >从
<input name="TrainBeginDate" type="text" class="Wdate" onClick="WdatePicker()" size="16"/>
到
<input name="TrainEndDate" type="text" class="Wdate" onClick="WdatePicker()" size="16"/>
(不填表示至今)</td>
</tr>
<tr>
<td bgcolor='#ddeeff'><font color="#FF0000">*</font>培训机构：</td>
<td ><input name="TrainAgencies" type="text" id="TrainAgencies" size="50"/></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>培训地点：</td>
<td ><input name="TrainAddr" type="text" id="TrainAddr" size="50"/></td>
</tr>
<tr>
<td bgcolor='#ddeeff'><font color="#FF0000">*</font>培训课程：</td>
<td ><input name="TrainCourses" type="text" id="TrainCourses" size="50"/></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>获得证书：</td>
<td ><input name="TrainCertificates" type="text" id="TrainCertificates" size="50"/></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>详细描述：</td>
<td ><textarea name="TrainNote" cols="50" rows="10" id="TrainNote" style="display:none"></TEXTAREA>
<IFRAME ID="eWebEditor1" src="_Editor/ewebeditor.asp?id=TrainNote&style=s_exampleremote" frameborder="0" scrolling="no" width="100%" height="350"></IFRAME></td>
</tr>
<tr>
<td bgcolor='#ddeeff'>&nbsp;</td>
<td ><input type="submit" name="Submit" value=" 添  加 " />
&nbsp;
<input type="reset" name="Submit" value=" 重  置 " />
</td>
</tr>
</form>
</table>


<!-- #include file="foot.asp" -->
